package io.yunho.yunho.interview.two.lock;

/**
 * @author: Jason
 * @date: 2021/3/15 21:50
 * @description:
 */
public class LockTest {
    public static void main(String[] args) {
        String getenv = System.getenv("NAMESRV_ADDR");
        System.out.println(getenv);
    }
    public synchronized void method01() {
        method02();
    }

    private synchronized void method02() {
        System.out.println("哈哈");
    }
}
